/*
 * @Author: 撒哈拉的花儿 30940518@qq.com
 * @Date: 2023-08-24 23:41:57
 * @LastEditors: 撒哈拉的花儿 30940518@qq.com
 * @LastEditTime: 2023-08-25 00:31:17
 * @FilePath: \qy_portal_foreend\src\api\gas\GasUsers\BlUserAddress.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询用户地址列表
export function listBlUserAddress(query) {
  return request({
    url: '/bl/userAddress/list',
    method: 'get',
    params: query
  })
}

// 查询用户地址详细
export function getBlUserAddress(addressId) {
  return request({
    url: '/bl/userAddress/' + addressId,
    method: 'get'
  })
}

// 新增用户地址
export function addBlUserAddress(data) {
  return request({
    url: '/gas/gasUserAddress',
    method: 'post',
    data: data
  })
}

// 修改用户地址
export function updateBlUserAddress(data) {
  return request({
    url: '/gas/gasUserAddress',
    method: 'put',
    data: data
  })
}

// 删除用户地址
export function delBlUserAddress(addressId) {
  return request({
    url: '/bl/userAddress/' + addressId,
    method: 'delete'
  })
}
